first and last class methods

#345