A Microsimulation Model of Activity Patterns