First cut

Made bars and got all the typecasting to work properly.