Incomplete code for building schedule